import * as types from './mutation-types'

const mutations = {
  [types.SET_CURRENT](state, current) {
    state.current = current
  },
  
  [types.SET_STATUS](state, status) {
    state.status = status
  },

  [types.SET_PLAY_STATUS](state, list) {
    state.playStatus = list
  },
  
  [types.SET_PLAYING](state, list) {
    state.playing = list
  },
  
  [types.SET_PLAYING_INDEX](state, index) {
    state.playingIndex = index
  },
  
  [types.SET_SONG_TIME](state, time) {
    state.songTime = time
  },
  
  [types.SET_TIMER](state, number) {
    state.songTime = number
  }
}

export default mutations
